package com.ncdnapp;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.core.event.AppLoadEndEvent;

@SolonMain
@Slf4j
public class App {
    public static void main(String[] args) {
        Solon.start(App.class, args, solonApp -> {
            log.info("开始启动...");
            String port = Solon.cfg().get("server.port");
            log.info("启动端口号:{}", port);
            solonApp.onEvent(AppLoadEndEvent.class, app -> {
                log.info("启动完成");
            });
        });
    }
}